/*
 * Copyright (c) 2002 David Corbin and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    David Corbin - Provides Access to certain semi-static behaviors
 *    Boris Pruessmann - Clean up work.
 */
package net.sourceforge.perforce.ui;

/**
 * @version $Revision: 38 $
 * @author  <a href="mailto:dcorbin@users.sourceforge.net">David Corbin</a>
 */
public class MicroPluginFactory
{
	// -------------------------------------------------------------------- Private Static Variables
	
	/** Stores the MicroPlugin instance. */
	private static MicroPlugin plugin;
	
	// ----------------------------------------------------------------------- Public Static Methods
	
	/** Call this method to set the plugin instance.
	  *
	  * @param plugin the new plugin instance. 
	  */
	public static void setPlugin(MicroPlugin plugin) 
	{ 
		MicroPluginFactory.plugin = plugin; 
	}
	
	/** Call this method to retrieve the plugin instance.
	  * 
	  * @return the plugin instance.
	  */
	public static MicroPlugin getPlugin() 
	{ 
		return  plugin; 
	}
}
